//
//  DmTextPage.h
//  FoxitApp
//
//  Created by wangyangyang on 15/5/4.
//
//

#import <Foundation/Foundation.h>


@class DmPage;
@interface DmTextPage : NSObject


-(instancetype)init:(DmPage*)dmPage;

- (NSRange)getWordByTextIndex:(int)index;
- (NSArray*)getRectsByTextRange:(int)startIndex endIndex:(int)endIndex;
- (NSString*)getTextbyTextRange:(FSPDFTextSelect*)fstextPage startIndex:(int)startIndex endIndex:(int)endIndex;
- (NSString*)getTextbyRect:(FSRectF *)rect;
- (int)getCharIndexAtPos:(float)x y:(float)y;
- (NSString*)getTextbyPage;

-(FSPDFTextSelect*)getTextPage;

- (NSArray*)getAllTextRect;
@end
